package smartlifev30.com.sdk.bean.response;

import java.util.List;

/**
 * 设备查询
 * Created by uesr on 2018/8/9.
 */

public class DeviceQueryResponse {


    /**
     * api_version : 0.1
     * end : 0
     * from : 08541B174795
     * msg_class : device_mgmt
     * msg_id : ANDBV-053
     * msg_name : device_query
     * msg_type : response
     * status : 0
     * to : 18782918305
     * token : 3d60a48fd2f4416b84690b642b2c5415
     * type_list : [{"device_list":[{"address":0,"com":0,"create_time":"2018-04-27 09:11:42","device_attr":"Light","device_id":10,"device_name":"非可调光","endpoint":3,"hard_ver":"00","mac":"000D6F000E1102AF","model":"LG323","network_type":0,"node_id":41602,"node_type":0,"product_id":10,"product_name":"非可调光","room_id":-1,"sn":"08541B174795","soft_ver":"19"}],"product_type":"On/Off Light"},{"device_list":[],"product_type":"Dimmable Light"},{"device_list":[],"product_type":"Window Covering Device"},{"device_list":[],"product_type":"Thermostat"},{"device_list":[],"product_type":"Data Transport"},{"device_list":[],"product_type":"Mains Power Outlet"},{"device_list":[],"product_type":"IR"},{"device_list":[{"address":0,"com":0,"create_time":"2018-05-08 16:38:14","device_attr":"ContactS","device_id":20,"device_name":"门窗磁探测器","endpoint":1,"hard_ver":"00","mac":"000D6F000BEB6F52","model":"SP305","network_type":0,"node_id":21847,"node_type":0,"product_id":20,"product_name":"安防传感器","room_id":-1,"sn":"08541B174795","soft_ver":"0E"}],"product_type":"IAS Zone"},{"device_list":[],"product_type":"Warning Device"},{"device_list":[],"product_type":"Combined Interface"},{"device_list":[],"product_type":"On/Off Output"},{"device_list":[],"product_type":"Scene Selector"},{"device_list":[],"product_type":"Zigbee IO_I"},{"device_list":[],"product_type":"Zigbee IO_O"},{"device_list":[{"address":0,"bind_cateye":"","com":0,"create_time":"2018-04-28 12:03:01","device_attr":"DoorLock","device_id":16,"device_name":"kaadas田考虑考虑","endpoint":1,"hard_ver":"01","mac":"000B57FFFED26437","model":"SL302","network_type":0,"node_id":44717,"node_type":0,"product_id":16,"product_name":"智能门锁","room_id":1,"sn":"08541B174795","soft_ver":"44"},{"address":0,"bind_cateye":"","com":0,"create_time":"2018-05-03 17:04:54","device_attr":"DoorLock","device_id":17,"device_name":"智能门锁","endpoint":1,"hard_ver":"00","mac":"000D6F000DBE3EDA","model":"SL302","network_type":0,"node_id":53791,"node_type":0,"product_id":17,"product_name":"智能门锁","room_id":1,"sn":"08541B174795","soft_ver":"08"},{"address":0,"bind_cateye":"","com":0,"create_time":"2018-06-28 15:20:23","device_attr":"DoorLock","device_id":21,"device_name":"智能门锁","endpoint":1,"hard_ver":"01","mac":"000B57FFFED2633B","model":"SL302","network_type":0,"node_id":5065,"node_type":0,"product_id":21,"product_name":"智能门锁","room_id":-1,"sn":"08541B174795","soft_ver":"44"}],"product_type":"Door Lock"}]
     */

    private String api_version;
    private int end;
    private String from;
    private String msg_class;
    private String msg_id;
    private String msg_name;
    private String msg_type;
    private int status;
    private String to;
    private String token;
    private List<TypeListBean> type_list;

    public String getApi_version() {
        return api_version;
    }

    public void setApi_version(String api_version) {
        this.api_version = api_version;
    }

    public int getEnd() {
        return end;
    }

    public void setEnd(int end) {
        this.end = end;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getMsg_class() {
        return msg_class;
    }

    public void setMsg_class(String msg_class) {
        this.msg_class = msg_class;
    }

    public String getMsg_id() {
        return msg_id;
    }

    public void setMsg_id(String msg_id) {
        this.msg_id = msg_id;
    }

    public String getMsg_name() {
        return msg_name;
    }

    public void setMsg_name(String msg_name) {
        this.msg_name = msg_name;
    }

    public String getMsg_type() {
        return msg_type;
    }

    public void setMsg_type(String msg_type) {
        this.msg_type = msg_type;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public List<TypeListBean> getType_list() {
        return type_list;
    }

    public void setType_list(List<TypeListBean> type_list) {
        this.type_list = type_list;
    }

    public static class TypeListBean {
        /**
         * device_list : [{"address":0,"com":0,"create_time":"2018-04-27 09:11:42","device_attr":"Light","device_id":10,"device_name":"非可调光","endpoint":3,"hard_ver":"00","mac":"000D6F000E1102AF","model":"LG323","network_type":0,"node_id":41602,"node_type":0,"product_id":10,"product_name":"非可调光","room_id":-1,"sn":"08541B174795","soft_ver":"19"}]
         * product_type : On/Off Light
         */

        private String product_type;
        private List<DeviceListBean> device_list;

        public String getProduct_type() {
            return product_type;
        }

        public void setProduct_type(String product_type) {
            this.product_type = product_type;
        }

        public List<DeviceListBean> getDevice_list() {
            return device_list;
        }

        public void setDevice_list(List<DeviceListBean> device_list) {
            this.device_list = device_list;
        }

        public static class DeviceListBean {
            /**
             * address : 0
             * com : 0
             * create_time : 2018-04-27 09:11:42
             * device_attr : Light
             * device_id : 10
             * device_name : 非可调光
             * endpoint : 3
             * hard_ver : 00
             * mac : 000D6F000E1102AF
             * model : LG323
             * network_type : 0
             * node_id : 41602
             * node_type : 0
             * product_id : 10
             * product_name : 非可调光
             * room_id : -1
             * sn : 08541B174795
             * soft_ver : 19
             */

            private int address;
            private int com;
            private String create_time;
            private String device_attr;
            private int device_id;
            private String device_name;
            private int endpoint;
            private String hard_ver;
            private String mac;
            private String model;
            private int network_type;
            private int node_id;
            private int node_type;
            private int product_id;
            private String product_name;
            private int room_id;
            private String sn;
            private String soft_ver;
            private String type_id;
            private String bind_cateye;
            public int getAddress() {
                return address;
            }

            public void setAddress(int address) {
                this.address = address;
            }

            public int getCom() {
                return com;
            }

            public void setCom(int com) {
                this.com = com;
            }

            public String getCreate_time() {
                return create_time;
            }

            public void setCreate_time(String create_time) {
                this.create_time = create_time;
            }

            public String getDevice_attr() {
                return device_attr;
            }

            public void setDevice_attr(String device_attr) {
                this.device_attr = device_attr;
            }

            public int getDevice_id() {
                return device_id;
            }

            public void setDevice_id(int device_id) {
                this.device_id = device_id;
            }

            public String getDevice_name() {
                return device_name;
            }

            public void setDevice_name(String device_name) {
                this.device_name = device_name;
            }

            public int getEndpoint() {
                return endpoint;
            }

            public void setEndpoint(int endpoint) {
                this.endpoint = endpoint;
            }

            public String getHard_ver() {
                return hard_ver;
            }

            public void setHard_ver(String hard_ver) {
                this.hard_ver = hard_ver;
            }

            public String getMac() {
                return mac;
            }

            public void setMac(String mac) {
                this.mac = mac;
            }

            public String getModel() {
                return model;
            }

            public void setModel(String model) {
                this.model = model;
            }

            public int getNetwork_type() {
                return network_type;
            }

            public void setNetwork_type(int network_type) {
                this.network_type = network_type;
            }

            public int getNode_id() {
                return node_id;
            }

            public void setNode_id(int node_id) {
                this.node_id = node_id;
            }

            public int getNode_type() {
                return node_type;
            }

            public void setNode_type(int node_type) {
                this.node_type = node_type;
            }

            public int getProduct_id() {
                return product_id;
            }

            public void setProduct_id(int product_id) {
                this.product_id = product_id;
            }

            public String getProduct_name() {
                return product_name;
            }

            public void setProduct_name(String product_name) {
                this.product_name = product_name;
            }

            public int getRoom_id() {
                return room_id;
            }

            public void setRoom_id(int room_id) {
                this.room_id = room_id;
            }

            public String getSn() {
                return sn;
            }

            public void setSn(String sn) {
                this.sn = sn;
            }

            public String getSoft_ver() {
                return soft_ver;
            }

            public void setSoft_ver(String soft_ver) {
                this.soft_ver = soft_ver;
            }

            public String getType_id() {
                return type_id;
            }

            public void setType_id(String type_id) {
                this.type_id = type_id;
            }

            public String getBind_cateye() {
                return bind_cateye;
            }

            public void setBind_cateye(String bind_cateye) {
                this.bind_cateye = bind_cateye;
            }

            @Override
            public String toString() {
                return "DeviceListBean{" +
                        "address=" + address +
                        ", com=" + com +
                        ", create_time='" + create_time + '\'' +
                        ", device_attr='" + device_attr + '\'' +
                        ", device_id=" + device_id +
                        ", device_name='" + device_name + '\'' +
                        ", endpoint=" + endpoint +
                        ", hard_ver='" + hard_ver + '\'' +
                        ", mac='" + mac + '\'' +
                        ", model='" + model + '\'' +
                        ", network_type=" + network_type +
                        ", node_id=" + node_id +
                        ", node_type=" + node_type +
                        ", product_id=" + product_id +
                        ", product_name='" + product_name + '\'' +
                        ", room_id=" + room_id +
                        ", sn='" + sn + '\'' +
                        ", soft_ver='" + soft_ver + '\'' +
                        ", type_id='" + type_id + '\'' +
                        ", bind_cateye='" + bind_cateye + '\'' +
                        '}';
            }
        }
    }
}
